import VueEcharts from 'vue-echarts';
import * as echarts from 'echarts';
import { App } from 'vue';
export const setupEcharts = (app: App<Element>) => {
    // 注册全局组件
    app.component('VueEcharts', VueEcharts);
    // 全局挂载
    app.config.globalProperties.$echarts = echarts;
}